﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TotalApplication.Core
{
    /// <summary>
    /// Helper class for <see cref="IconType"/> extensions.
    /// </summary>
    public static class IconTypeExtensions
    {

        public static string ToFontAwesome(this IconType iconType)
        {
            return iconType switch
            {
                IconType.File => "\uf0f6",
                IconType.Picture => "\uf1c5",
                _ => string.Empty

                // throw exception if the icon type is not recognized
                //_ => throw new ArgumentOutOfRangeException(nameof(iconType), iconType, null)
            };
        }
    }
}
